﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChanPin_In.aspx.cs" Inherits="syc.Store.ChanPin_In" %>
<html>
<head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <form id="form1" runat="server">
    <div id="wintop" class="wintop">产品入库</div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">
            <asp:Button ID="Button_New" runat="server" Text="新 建" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_New_Click" />
            <asp:Button ID="Button_Calc" runat="server" Text="计算总数" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Calc_Click" />
            <asp:Button ID="Button_Finish" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Finish_Click" />
            <span style="width:30px;"></span><asp:Button ID="Button_Query" runat="server" CssClass="button" 
                onclick="Button_Query_Click" Text="单据查询" />
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
        
        SelectCommand="SELECT [ID], [品名] +' '+ [规格] as [产品名称] FROM [产品]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
        SelectCommand="SELECT [ID], [名称] FROM [生产单位]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" 
ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
SelectCommand="SELECT [Value] FROM [系统变量] where [Name]='仓储主管'"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource4" runat="server" 
ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
SelectCommand="SELECT [Value] FROM [系统变量] where [Name]='库管员'"></asp:SqlDataSource>

        <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
        SelectCommand="SELECT [ID], [名称] FROM [原料供货单位]"></asp:SqlDataSource>

        <asp:SqlDataSource ID="SqlDataSource6" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
        SelectCommand="SELECT [名称], [ID] FROM [原料供货单位]"></asp:SqlDataSource>

        <script>    putBillHead();</script>
        
    <table border="0" cellpadding="3" style="width:911px;border-collapse: collapse;font-size:14px; padding:5px;">
        <tr>
	        <td style="font-size:24px;" colspan="3" align="center">陕西延长石油材料有限公司</td>
        </tr>
        <tr>
	        <td width="33%">  </td>
	        <td width="34%" style="font-size:24px;" align="center">产品入库清单</td>
	        <td width="33%" align="right">编码：SYC/ZJ-WL-20</td>
        </tr>
        <tr>
	        <td>　</td>
	        <td>　</td>
	        <td align="right">
                <asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" 
                        Width="120px"></asp:TextBox>
                        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" /></asp:TextBox>
            </td>
        </tr>
    </table>
    <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;font-size:14px;" bordercolor="#333333">
        <tr>
	        <td style="height:24px;" align="center">供货单位</td>
	        <td colspan="2">
                <asp:DropDownList ID="GongHuo" runat="server" 
                    DataSourceID="SqlDataSource6" DataTextField="名称" DataValueField="ID" 
                    Width="180px">
                </asp:DropDownList>
            </td>
	        <td align="center">技术条件</td>
	        <td align="center">API Spec5CT</td>
	        <td align="center">&nbsp;</td>
	        <td align="center" colspan="2">　</td>
	        <td align="center">序 号</td>
	        <td align="center">
                <asp:TextBox ID="DanHao" runat="server" CssClass="intxt1"></asp:TextBox>
                　</td>
        </tr>
        <tr>
	        <td style="height:24px;" align="center">产品类别</td>
	        <td>
                <asp:DropDownList ID="ChanPin" runat="server" Width="90px" AutoPostBack="True" 
                    DataSourceID="SqlDataSource1" DataTextField="产品名称" DataValueField="ID" 
                    onselectedindexchanged="ChanPin_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
	        <td align="center">
			<p align="center">钢级</td>
	        <td align="center"><asp:TextBox ID="GangJi" runat="server" CssClass="blank_center" 
                    ReadOnly="True">J55</asp:TextBox>
            </td>
	        <td align="center">规格mm</td>
	        <td><asp:TextBox ID="GuiGe" runat="server" CssClass="blank_center" 
                    ReadOnly="True"></asp:TextBox>
            </td>
	        <td align="center">总支数</td>
	        <td><asp:TextBox ID="ZongZhiShu" runat="server" CssClass="intxt1"></asp:TextBox>
            </td>
	        <td align="center">生产单位</td>
	        <td>
                <asp:DropDownList ID="ShengChan" runat="server" 
                    DataSourceID="SqlDataSource2" DataTextField="名称" DataValueField="ID" 
                    Width="90px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
	        <td style="height:24px;">
			<p align="center">总重量kg</td>
	        <td colspan="2">
                <asp:TextBox ID="ZongZhong" runat="server" CssClass="blank_center" 
                    ReadOnly="True"></asp:TextBox>
            </td>
	        <td>
			<p align="center">总件数</td>
	        <td><asp:TextBox ID="ZongJian" runat="server" CssClass="blank_center" 
                    ReadOnly="True"></asp:TextBox>
            </td>
	        <td>
			<p align="center">总长度m</td>
	        <td colspan="2">
                <asp:TextBox ID="ZongChang" runat="server" CssClass="blank_center" 
                    ReadOnly="True"></asp:TextBox>
            </td>
	        <td>
			<p align="center">&nbsp;</td>
	        <td>&nbsp;</td>
        </tr>
        <tr>
	        <td style="width:90px;height:24px;" align="center">原料供货商</td>
	        <td style="width:90px;" align="center">炉号</td>
	        <td style="width:90px;" align="center">捆数编号</td>
	        <td style="width:90px;" align="center">捆重量kg</td>
	        <td style="width:90px;" align="center">捆长度m</td>
	        <td style="width:90px;" align="center">原料供货商</td>
	        <td style="width:90px;" align="center">炉号</td>
	        <td style="width:90px;" align="center">捆数编号</td>
	        <td style="width:90px;" align="center">捆重量kg</td>
	        <td style="width:90px;" align="center">捆长度m</td>
        </tr>
        <tr>
	        <td rowspan="14" valign="top">
                <asp:DropDownList ID="GonHuo" runat="server" Width="90px"
                    DataSourceID="SqlDataSource5" DataTextField="名称" DataValueField="ID">
                </asp:DropDownList>
            </td>
	        <td style="height:24px;">
                <asp:TextBox ID="LuHao" runat="server" CssClass="intxt1"></asp:TextBox>
            </td>
	        <td><asp:TextBox ID="R1_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R1_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R1_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td rowspan="14" valign="top">　</td>
	        <td>　</td>
	        <td><asp:TextBox ID="R2_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R2_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R2_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R3_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R3_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R3_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R4_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R4_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R4_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R5_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R5_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R5_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R6_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R6_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R6_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R7_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R7_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R7_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R8_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R8_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R8_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R9_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R9_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R9_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R10_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R10_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R10_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R11_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R11_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R11_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R12_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R12_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R12_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R13_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R13_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R13_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R14_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R14_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R14_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R15_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R15_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R15_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R16_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R16_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R16_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R17_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R17_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R17_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R18_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R18_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R18_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R19_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R19_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R19_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R20_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R20_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R20_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R21_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R21_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R21_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R22_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R22_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R22_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R23_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R23_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R23_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R24_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R24_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R24_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R25_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R25_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R25_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R26_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R26_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R26_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>
        <tr>
	        <td style="height:24px;">　</td>
	        <td><asp:TextBox ID="R27_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R27_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R27_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td>　</td>
	        <td><asp:TextBox ID="R28_C1" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R28_C2" runat="server" CssClass="intxt1"></asp:TextBox></td>
	        <td><asp:TextBox ID="R28_C3" runat="server" CssClass="intxt1"></asp:TextBox></td>
        </tr>

        <tr>
	        <td align="center">备注</td>
	        <td colspan="6"><asp:TextBox ID="BeiZhu" runat="server" CssClass="intxt1" Width="100%" Height="40px" TextMode="MultiLine"></asp:TextBox></td>
	        <td align="center">&nbsp;</td>
	        <td colspan="2">
                &nbsp;</td>
        </tr>
    </table>
        <table border="0" cellpadding="0" style="width:850px;border-collapse: collapse;font-size:14px;margin-top:4px;">
	            <tr>
                    <td width="25%" nowrap align="center">主管：<asp:DropDownList ID="CangChuZhuGuan" runat="server" 
                            Width="120px" DataSourceID="SqlDataSource3" DataTextField="Value" 
                            DataValueField="Value">
                        </asp:DropDownList>
                    </td>
                    <td width="25%">　</td>
                    <td width="25%">　</td>
                    <td width="25%" nowrap align="center">保管员：<asp:DropDownList ID="KuGuanYuan" runat="server" 
                            Width="120px" DataSourceID="SqlDataSource4" DataTextField="Value" 
                            DataValueField="Value">
                        </asp:DropDownList>
                    </td>
                </tr>
	        </tr>

        </table>

        <script>    putBillFoot();</script>

    </form>
    
    <script>
        var textboxs = document.getElementsByTagName("input");
        for (var i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }
        }
    </script>
</body>
</html>
